#include "od_sip_types.h"

const od_sip_audio_desc g_audio_desc[3] = 
{
    {   /*media_type*/
        OD_SIP_AUD_G711A_8K,

        /*codec_desc*/
        {PJMEDIA_TYPE_AUDIO, PJMEDIA_RTP_PT_PCMA, {(char *)"PCMA", 4}, 8000, 1},

        /*codec_fmpt*/
        { 
            0, /*cnt*/
            { 
                {
                    {(char *)"bitrate", 7}, 
                    {(char *)"64000", 5}
                }
            }
        }
    },

    {   
        OD_SIP_AUD_G711U,
                
        {PJMEDIA_TYPE_AUDIO, PJMEDIA_RTP_PT_PCMU, {(char *)"PCMU", 4}, 8000, 1},

        /*codec_fmpt*/
        { 
            0, /*cnt*/
            { 
                {
                    {(char *)"bitrate", 7}, 
                    {(char *)"64000", 5}
                }
            }
        }
    },     

    {   
        OD_SIP_AUD_AAC,
                
        {PJMEDIA_TYPE_AUDIO, 97, {(char *)"mpeg4-generic", 13}, 48000, 2},

        /*codec_fmpt*/
        { 
            0, /*cnt*/
            { 
                {
                    {(char *)"bitrate", 7}, 
                    {(char *)"64000", 5}
                }
            }
        }
    }, 
};


const pj_str_t STR_IN  = { (char *)"IN", 2 };
const pj_str_t STR_IP4 = { (char *)"IP4", 3};
const pj_str_t STR_IP6 = { (char *)"IP6", 3};
const pj_str_t STR_RTP_AVP  = { (char *)"RTP/AVP", 7 };
const pj_str_t STR_SDP_NAME = { (char *)"sm_sdp/1.0", 10 };
const pj_str_t STR_SENDRECV = { (char *)"sendrecv", 8 };
const pj_str_t STR_SENDONLY = { (char *)"sendonly", 8 };
const pj_str_t STR_RECVONLY = { (char *)"recvonly", 8 };
const pj_str_t STR_INACTIVE = { (char *)"inactive", 8 };
const pj_str_t STR_AUDIO    = { (char *)"audio", 5 };
const pj_str_t STR_VIDEO    = { (char *)"video", 5 };
const pj_str_t STR_PROFILE_LEVEL_ID = {(char *)"profile-level-id", 16};
const pj_str_t STR_MAX_MBPS     = {(char *)"max-mbps", 8};
const pj_str_t STR_MAX_FS       = {(char *)"max-fs", 6};
const pj_str_t STR_MAX_LSR      = {(char *)"max-lsr", 7};
const pj_str_t STR_MAX_LPS      = {(char *)"max-lps", 7};
const pj_str_t STR_MAX_CPB      = {(char *)"max-cpb", 7};
const pj_str_t STR_MAX_DPB      = {(char *)"max-dpb", 7};
const pj_str_t STR_MAX_BR       = {(char *)"max-br", 6};
const pj_str_t STR_PACKETIZATION_MODE   = {(char *)"packetization-mode", 18};
const pj_str_t STR_SPROP_PARAMETER_SETS = {(char *)"sprop-parameter-sets", 20};
const pj_str_t STR_RTP_PORTMUX  = { (char *)"rtpport-mux", 11 };
const pj_str_t STR_MUXID        = { (char *)"muxid", 5 };
const pj_str_t STR_BANDW_TIAS   = { (char *)"TIAS", 4 };
const pj_str_t STR_BANDW_AS     = { (char *)"AS", 2 };
const pj_str_t STR_H264         = { (char *)"H264", 4 };
const pj_str_t STR_H265         = { (char *)"H265", 4 };
const pj_str_t STR_JAVS         = { (char *)"JAVS", 4 };
const pj_str_t STR_RTPMAP       = { (char *)"rtpmap", 6 };
const pj_str_t STR_FMTP         = { (char *)"fmtp", 4 };
const pj_str_t STR_BITRATE      = { (char *)"bitrate", 7 };



/**
* Declaration of H.264 level info
* H.264 Typical resolution media negotiation parameter reference values
*/
const od_h264_level_info_t h264_standard_table[14] = 
{
    /*level  max-mbps max-fs reso  fps*/
    { (char *)"640033", 972000, 32400, {3840, 2160}, 30}, 
    { (char *)"640032", 540000, 9000,  {1920, 1200}, 60}, 
    { (char *)"640032", 270000, 9000,  {1920, 1200}, 30}, 
    { (char *)"64002A", 486000, 8100,  {1920, 1080}, 60}, 
    { (char *)"640028", 243000, 8100,  {1920, 1080}, 30}, 
    { (char *)"640020", 216000, 3600,  {1280, 720},  60}, 
    { (char *)"64001F", 108000, 3600,  {1280, 720},  30}, 
    { (char *)"64001F", 97200,  1620,  {720, 576},   60}, 
    { (char *)"64001F", 48600,  1620,  {720, 576},   30}, 
    { (char *)"64001F", 95040,  1584,  {704, 576},   60}, 
    { (char *)"64001F", 47520,  1584,  {704, 576},   30}, 
    { (char *)"64001E", 39600,  1584,  {704, 576},   25}, 
    { (char *)"640014", 11880,  396,   {352, 288},   30}, 
    { (char *)"64000B", 2970,   99,    {176, 144},   30}
};


/**
* H.265 Typical resolution media negotiation parameter reference values
*/
const od_h265_level_info_t h265_standard_table[15] = 
{
    /* level     max_ls   max_lps   w     h     fps */
    { (char *)"640033", 497664000, 8294400, {3840, 2160}, 60},
    { (char *)"640032", 248832000, 8294400, {3840, 2160}, 30},
    { (char *)"640032", 138240000, 2304000, {1920, 1200}, 60},
    { (char *)"640032", 69120000,  2304000, {1920, 1200}, 30},
    { (char *)"640029", 124416000, 2073600, {1920, 1080}, 60},
    { (char *)"640028", 62208000,  2073600, {1920, 1080}, 30},
    { (char *)"640028", 55296000,  921600,  {1280, 720},  60},
    { (char *)"64001F", 27648000,  921600,  {1280, 720},  30},
    { (char *)"64001F", 24883200,  414720,  {720,  576},  60},
    { (char *)"64001E", 12441600,  414720,  {720,  576},  30},
    { (char *)"64001F", 24330240,  405504,  {704,  576},  60},
    { (char *)"64001E", 12165120,  405504,  {704,  576},  30},
    { (char *)"64001E", 10137600,  405504,  {704,  576},  25},
    { (char *)"640014", 3041280,   101376,  {352,  288},  30},
    { (char *)"64000A", 760320,    25344,   {176,  144},  30}
};



/*_*/


